<!DOCTYPE html>
<html>
<head>
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
	<meta charset="utf-8">
	<title>列表渲染</title>
</head>
<script type="text/javascript" src="../js/vue.js"></script>
<body>
	<div id="app">
		{{item_l}}
	</div>
	<script type="text/javascript">
		var vm = new Vue({
			el: "#app",
			data:{
				items:[
					{a:1},
					{b:2},
					{c:3}
				],
			},
			computed: {
				item_l: function(){
					return this.items.length
				}
			}
		})
	</script>
</body>
</html>